<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>字幕组</title>
    <!-- Bootstrap -->
    <link href="/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <style type="text/css">
        body {
            font-size: 12px !important;
            font-family: 'Microsoft YaHei', "宋体", Geneva, sans-serif;
            line-height: 150%;
            color: #575757;
            margin: 0;
            padding: 0;
            background: #eeeeee;
        }
        .navbar{
            display: block;
            position: relative;

        }
        .top{
            top: 0px;
            margin: 0px;
        }
        .news{
            top: 0px;
            margin: 0px;
        }
        #bs-example-navbar-collapse-2{
            float: right;
        }
        .label{
            float: right;
            color: #FFFFFF;
        }

        .t-title{
            border-radius: 5px;
            height: 30px;
            background-color: #333;
        }
        .t-name{
            margin: 0px;
            color: #FFFFFF;
            padding: 6px 18px;
        }
        .middle{
            top: 8px;
            position: relative;
        }

    </style>
    <script src="/Public/js/jquery-3.0.0.min.js"></script>
    
</head>
<body>
<!------  导航条开始 ------->
<div class="bs-example bs-navbar-top-example" data-example-id="navbar-fixed-to-top">
    <nav class="navbar navbar-inverse" role="navigation">
        <!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="<?php echo U('Index/Index');?>">字幕组</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-6">
                <ul class="nav navbar-nav">
                    <li><a href="<?php echo U('Index/Index');?>">首页</a></li>

                    <li><a href="<?php echo U('News/Index');?>">资讯</a></li>
                    <li><a href="<?php echo U('Movie/Index');?>">影视库</a></li>


                </ul>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
                    <form class="navbar-form navbar-left" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="请输入搜索关键字">
                        </div>
                        <button type="submit" class="btn btn-default">查找</button>
                    </form>
                </div>
            </div><!-- /.navbar-collapse -->
            <iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></div>
    </nav>
</div>

<div class="container col-md-12">
    
    <!-----全站热门------------>
    <div class="bs-example col-sm-3" data-example-id="simple-table">
        <table class="table">
            <caption>全站热门</caption>
            <tbody>
            <tr>
                <th scope="row">1</th>
            </tr>
            <tr>
                <th scope="row">2</th>
            </tr>
            <tr>
                <th scope="row">3</th>
            </tr>
            </tbody>
        </table>
    </div>
    <!-----右侧代码----------->
    <div class="bs-example col-sm-9" data-example-id="simple-table">
        <table class="table">
            <tbody>
                <tr>
                    <th>
                        类别：
                    <a href="<?php echo U('index', $type_url);?>"  class="btn btn-link">全部</a>

                    <?php if(is_array($types)): $i = 0; $__LIST__ = $types;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$type): $mod = ($i % 2 );++$i;?><a href="<?php echo U($url, array_merge($type_url, array('type_id'=>$type['id'])));?>"  class="btn btn-link"><?php echo ($type["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                    </th>

                </tr>

            <tr>
                <th scope="row">地区：
                    <a href="<?php echo U('index', $style_url);?>"  class="btn btn-link">全部</a>
                    <?php if(is_array($regions)): $i = 0; $__LIST__ = $regions;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$region): $mod = ($i % 2 );++$i;?><a href="<?php echo U($url, array_merge($type_url, array('region_id'=>$region['id'])));?>"  class="btn btn-link"><?php echo ($region["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                </th>
            </tr>
            <tr>
                <th scope="row">类型：
                    <a href="<?php echo U('index', $style_url);?>"  class="btn btn-link">全部</a>
                    <?php if(is_array($styles)): $i = 0; $__LIST__ = $styles;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$style): $mod = ($i % 2 );++$i;?><a href="<?php echo U($url, array_merge($style_url, array('style_id'=>$style['id'])));?>"  class="btn btn-link"><?php echo ($style["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                </th>
            </tr>

                    <table class="table table-hover">
                        <div class="row">
                            <?php if(is_array($movies)): $i = 0; $__LIST__ = $movies;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$m): $mod = ($i % 2 );++$i;?><div class="col-xs-2 col-md-2">

                                    <a href="<?php echo U('show',array('id'=>$m['id']));?>">
                                        <img  alt="最新发布" style="height: 140px; width: 100%; display: block;" src="<?php echo ($m["thumb"]); ?>" width="365px" height="180px" data-holder-rendered="true">
                                    </a>
                                    <div class="caption">
                                        <h5><?php echo ($m["name"]); ?></h5>
                                    </div>

                                </div><?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>

                    </table>



            </tbody>
        </table>
    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="/Public/js/jquery.min.js"></script>

    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="/Public/bootstrap/js/bootstrap.min.js"></script>


    

</body>
</html>